﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SWDataDB.BLL
{
    public class StringUnit
    {
        /// <summary>
        /// 格式化提示信息
        /// </summary>
        /// <param name="message">原信息</param>
        /// <returns></returns>
        public static string FormatMessage(string message)
        {
            string newMessage = message.Replace("'", "\\'")
                .Replace(System.Environment.NewLine, "<br />");
            return newMessage;
        }
    }
}
